﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class UI_ShareTrail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (!string.IsNullOrEmpty(Request["trailid"].ToString()))
            {
                string trailID = Request["trailid"].ToString();

                txtMsg.Text = "I have seen this trail somewhere and I wanted to share with you. Have a look: " + ConfigurationManager.AppSettings["WebsiteUrl"] + "UI/trail-details.aspx?TrailID=" + trailID;
            }
        }
    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        /*
         * TODO
        string senderName = txtSenderName.Text.Trim();
        string senderEmail = txtSenderEmail.Text.Trim();
        string friendName = txtFriendName.Text.Trim();
        string friendEmail = txtFriendEmail.Text.Trim();
        string subject = "Promotion email";
        string body = txtMsg.Text.Trim();

        Util.SendMail(senderName, senderEmail, friendEmail, subject, body);
        */
    }
    protected void txtSenderName_TextChanged(object sender, EventArgs e)
    {

    }
}
